package com.xxh.food.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import com.xxh.food.common.entity.User;
import com.xxh.food.common.param.UserPARAM;

import java.util.List;


public interface UserService extends IService<User> {
    User login(String username,String password);

    User adminLogin(String username,String password);

    User findUserByUsername(String username);

    Page<User> findUserByPage(Integer pageNum, Integer pageSize, UserPARAM userPARAM);

    int userNum();
}
